{include file='common/_meta' /}
<body>
<div class="container">
	<div class="layui-row">
        <div class="layui-col-md12 breadcrumb">
    		<span class="layui-breadcrumb">
                <a><cite>审核管理</cite></a>
                <a><cite>短信审核</cite></a>
    			<a><cite>短信号码</cite></a>
    		</span>
        </div>
    </div>
    <div class="layui-row">

        <form class="layui-form" action="" lay-filter="" style="padding-top: 15px;" id="search-form">
            <div class="layui-col-sm4">
                <div class="layui-form-item">
                    <label class="layui-form-label">手机号：</label>
                    <div class="layui-input-block">
                        <input type="text" name="phone" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>


            <div class="layui-col-sm4">
                <div class="layui-input-block">
                    <button class="layui-btn custom-sm-fluid" id="search" lay-submit lay-filter="custom-search">搜索</button>
                </div>
            </div>

        </form>

    </div>
	<div class="layui-col-md12">

		<table class="layui-hide" id="initdate" lay-filter="datatable"></table>

	</div>

</div>
{include file="common/_footer"}

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
var tableId = '{$request["table_order_id"]}';
var st = '{$request["st"]}';
layui.use(['table'], function() {

	var table = layui.table;
	var layer = layui.layer;
	var form  = layui.form;

    var tableIns = table.render({
        id: 'datatable'
        ,elem: '#initdate'
        ,url:'{:url('SmsReview/smsphone')}'
        ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
        // ,toolbar: '#toolbarDemo'//默认工具栏
        ,defaultToolbar: []
        ,data:[]
        ,method:'get'//请求方式
        ,where: {api: 1,tableId:tableId,st:st,phone:''}
        ,page:true//开启分页
        ,limit:15//每页记录数
        ,limits: [15,20,30,40,50,60,70,80,90]
        ,cols: [[
            // {type:'checkbox', title: '选择'}
            {type:'numbers', title: '序号'}
            ,{field:'phone', title: '号码'}
            ,{field:'isp', title: '运营商'}
            ,{field:'create_time', title: '创建时间',align: 'center'}
            // ,{field:'desc', title: '描述',align: 'center'}
            // ,{fixed:'right', title: '操作', toolbar: '#barDemo', width: 100, unresize: true}
        ]]
    });

    form.on('submit(custom-search)', function(data) {

        tableIns.reload({
            url:'{:url('SmsReview/smsphone')}'
            ,where: {api: 1,tableId:tableId,st:st,phone:data.field.phone}
            ,page: {curr: 1}
        });
        $(window).resize()

        return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
    });

});



</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
